//
//  Function.h
//  Day11
//
//  Created by dllo on 16/5/18.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef struct Student {
    char name[20];
    int age;
    double score;
    
}Student;


void sayHello();
int getMax (int a, int b);
int getSum (int a ,int b);

void addStr(char *name);

typedef void(*FUNC)(char *);

void findStudentByScore(Student *stus, int count, FUNC p);

void printStudents(Student stuArray[] ,int count);

//比较两个学生的年龄:
BOOL compareStudentByAge (Student stu1 ,Student stu2);
//比较两个学生的分数
BOOL compareStudentByScore (Student stu1 ,Student stu2);

typedef BOOL (*Condition) (Student,Student);

//冒泡排序的函数:
void bubbleSort (Student stuArray[], int count, Condition p);

